package com.jj.entity;


import java.io.Serializable;
import java.util.List;
import java.util.Objects;

public class menu implements Serializable {

    private String menu_id;
    private String menu_name;
    private String pid;
    private List<menu> menuList;
    private String menu_code;

    @Override
    public String toString() {
        return "menu{" +
                "menu_id='" + menu_id + '\'' +
                ", menu_name='" + menu_name + '\'' +
                ", pid='" + pid + '\'' +
                ", menuList=" + menuList +
                '}';
    }

    public String getMenu_id() {
        return menu_id;
    }

    public void setMenu_id(String menu_id) {
        this.menu_id = menu_id;
    }

    public String getMenu_name() {
        return menu_name;
    }

    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public List<menu> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<menu> menuList) {
        this.menuList = menuList;
    }

    public String getMenu_code() {
        return menu_code;
    }

    public void setMenu_code(String menu_code) {
        this.menu_code = menu_code;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        menu menu = (menu) o;
        return Objects.equals(menu_id, menu.menu_id) &&
                Objects.equals(menu_name, menu.menu_name) &&
                Objects.equals(pid, menu.pid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(menu_id, menu_name, pid, menuList);
    }


}

